package com.gulimall.authserver.feign;

import com.gulimall.authserver.vo.UserLoginVo;
import com.gulimall.authserver.vo.UserRegisterVo;
import com.gulimall.common.to.AuthSocialUserTo;
import com.gulimall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author kkk
 * @date 2022/7/31
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/register")
    R registerMember(@RequestBody UserRegisterVo registerVo);

    @PostMapping("/member/member/login")
    R memberLogin(@RequestBody UserLoginVo loginVo);

    @PostMapping("/member/member/oauth/login")
    R memberOAuthLogin(@RequestBody AuthSocialUserTo socialUserTo);
}
